import { APlugin } from '../types/common.interface';
import { TableDatas } from '../cors/table-datas';
import {  Inject, Injectable, PluginInjectable } from '../decorators/inject';
import { ExecuteRecord } from '../cors/execute-record';
import { NExcel } from '../types';
import { Config } from '../cors/config';
import { createElement } from '../utils/dom-helper';
import { fromEvent } from 'rxjs';
import { filter } from 'rxjs/operators';
import './col-width.plugin.less';
import { EventHelper } from '../utils/event-helper';
import { RenderTrigger } from '../cors/render-trigger';
import { ColWidthCommand } from '../commands/col-width-command';
import { Cache } from '../cors/cache';
import { CellTypeManage } from '../cors/cell-type-manage';
import { ICellGroup } from '../cell-types';
@Injectable()
@PluginInjectable('CellTypePlugin')
export class CellTypePlugin  extends APlugin{
    constructor(
        protected cellTypeManage: CellTypeManage
    ) {
        super()
    }
    public init() {

    }
    public register(cellType: ICellGroup) {
        return this.cellTypeManage.register(cellType);
    }
    public remove(type: string) {
        return this.cellTypeManage.remove(type);
    }
    public destroy(): void {
        
    }
}